The Implementation and Efficiency of Arrays in Clean 1.1
نویسنده
چکیده
We present a new approach to implementing arrays in a pure lazy functional programming language. The arrays can be updated destructively by using uniqueness typing, and the elements can be unboxed. We describe the implementation of these arrays in the functional programming language Clean 1.1. The performance of two sorting algorithms and a fast fourier transformation written in Clean using arrays is compared with similar programs written in C. The current implementation of Clean is on average about 25 percent slower than C for these programs.
منابع مشابه
Separation of Salmonella Typhimurium Bacteria from Water Using MWCNTs Arrays
In this study, Salmonella Typhimurium bacteria removal from polluted water has been investigated using multiwall carbon nanotubes arrays. Experimental results reveal that the contact time, the bacterial concentration and the weight of multiwall carbon nanotubes arrays have positive significant effects on the bacteria removal efficiency. Increasing the contact time and the weight of multiwall ca...
متن کاملUsing the Particle Swarm Optimization Algorithm to Generate the Minimum Test Suite in Covering Array with Uniform Strength
Up to now, several useful algorithms have been proposed to generate covering array, which is one of the branches of combinatorial testing. The main challenge in generating such arrays is generation of the arrays with a minimum number of test cases (for efficiency) at a proper time (for performance), for large systems. Covering array generation strategies are often divided into two general categ...
متن کاملOptimal Reconfiguration of Solar Photovoltaic Arrays Using a Fast Parallelized Particle Swarm Optimization in Confront of Partial Shading
Partial shading reduces the power output of solar modules, generates several peak points in P-V and I-V curves and shortens the expected life cycle of inverters and solar panels. Electrical array reconfiguration of PV arrays that is based on changing the electrical connections with switching devices, can be used as a practical solution to prevent such problems. Valuable studies have been perfor...
متن کاملاستفاده از میخ گچی، راهکاری برای استحکام بخشی و ماندگاری آرایه های معماری تاریخی
With regard to the dry climatic conditions of Iran, cob and gypsum mortars were used in architectural arrays of many regions of Iran, to create the scratch coat (Arriccio) and fine coat (Intonaco) in the historical periods. The thickness of the fine coat was often very low (one-two mm). In this regard, one of the examples is the City of Yazd. One of the buildings made in the eighth century (Isl...
متن کاملAdaptive beamforming in row-column addressed arrays for 3D ultrasound imaging
In recent years, to reduce the complexity of implementation, the use of 2D arrays with restricted row-column addressing has been considered for 3D ultrasound imaging. In this paper, two methods of adaptive beamforming based on the minimum variance method are represented in such a way that the computational load is much less than using the full adaptive beamforming method. In both proposed metho...
متن کامل